#ifndef _PROTOCAL_H_
#define _PROTOCAL_H_
#define C2S_SYNC_SESSION 0
#define C2S_SYNC_DIRECTORY 1
#define C2S_SYNC_FILE_STATE 2
#define C2S_SYNC_FILE 3

#define S2C_SYNC_SESSION 0
#define S2C_REQUEST_FILE 1

struct C2S_SyncSession
{
	xgc_char	session[64];
};

struct S2C_SyncSession
{
	xgc_char	session[64];
};

struct C2S_SyncDirectory
{
	xgc_char	directory[_MAX_DIR];
};

struct C2S_SyncFileState
{
	xgc_char	filename[_MAX_PATH];
	time_t		filedate;
	size_t		filesize;
};

struct C2S_SyncFile
{
	xgc_size	data_length;
	xgc_char	data_operator;
	xgc_char	data[1];
};

struct S2C_RequestFile
{
	xgc_char	filename[_MAX_PATH];
};
#endif //_PROTOCAL_H_